<?php

/**
 *  view: moderators teams page
 *  File: moderators/teams.php
 * 
 */

?>


<h1><?php echo lang('modearator_teams'); ?></h1>


<div class="user_action">
  <a href="javascript:void(null)" id="add_team" alt="<?=lang('add_team')?>" ><img src="<?=base_url()?>img/icons/Create.png" title="<?=lang('add_team')?>" /></a>
  &nbsp; 
  <a href="javascript:void(null)" id="edit_team" alt="<?=lang('edit_team')?>" ><img src="<?=base_url()?>img/icons/Edit.png" title="<?=lang('edit_team')?>" /></a>   
</div>

<br/>
<table id="data-table" width='100%' class='table_sorter table_pager' cellpadding=3px cellspacing=0>
  <thead>    
    <th width="50px">ID</th>
    <th align='left'><?=lang('term_team')?></th>    
    <th width="50px"><?=lang('active')?></th> 
    <th><?=lang('timestamp')?></th> 
  </thead>
    <tbody>
    <?php 
      $this->load->view('moderators/teams/all_team_list');
    ?>  
    </tbody>
</table>

<div id="pager" class="pager">
	<form>
		<img src="<?=base_url()?>css/tablesorter/first.png" alt=" << " class="first">        
		<img src="<?=base_url()?>css/tablesorter/prev.png" alt=" < " class="prev">    
        
		<input class="pagedisplay ui-widget-content ui-corner-all" style='width:50px;' type="text">
        <select class="pagesize ui-widget-content ui-corner-all">
			<option value="5">5</option>
            <option selected="selected" value="10">10</option>
			<option value="20">20</option>
			<option value="30">30</option>
			<option value="40">40</option>
		</select>
        
		<img src="<?=base_url()?>css/tablesorter/next.png" alt=" > " class="next">
		<img src="<?=base_url()?>css/tablesorter/last.png" alt=" >>  " class="last">		
   	</form>
</div>
<br/>
<br/>

<br/>
<div id='response'></div>
<br/>
<a href="<?=LINK_URL?>moderators" ><< <?php echo lang('moderators');?></a>

<div id="dialog-team" class="hide" title="<?php echo lang('term_team'); ?>">  
<h2><?php echo lang('term_team'); ?></h2>

<form id="form-team" action='' method="post" >
  
  <label>ID:</label><input type="text" readonly="readonly" name="team[id]" id="team_id" value='' class="text ui-widget-content ui-corner-all" /> 
  <br/>

  <br/>
  <label>* <?=lang('team_name')?>:</label>
      <input type='text' name='team[name]' id="team_name" class="text middle ui-widget-content ui-corner-all" />
  <br/><br/>
  <label style='clear: left !important;'><?=lang('team_description')?>:</label>
        <textarea name="team[description]" id="team_description" class="txtarea ui-widget-content ui-corner-all" ></textarea>
       
       <div style='margin-left: 100px; margin-top: 10px;' id="team_response"></div> 
        <br/>
        <hr/>
        <input type="submit" name="team_submit" value="<?=lang('term_save')?>" class='right ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all' />
        
  
</form>
</div>

<input type="hidden" id="selected_team_id" />

<br/>
<div id='response'></div>
<br/>